import request from '@/utils/request'

// 登录--密码登录
export const passwordLogin = (data) => request({
  url: '/login/password',
  method: 'POST',
  data
})

// 登录--手机验证码登录
export const codeLogin = (data) => request({
  url: '/login',
  method: 'POST',
  data
})

// 获取手机验证码
export const getCode = (params) => request({
  url: '/code',
  method: 'GET',
  params
})
